package com.commander.structures;

import java.sql.*;

public class DatabaseProcess extends Thread {
	private final String query, database, port, username, password;
	public Connection con;
	public DatabaseProcess(String query, String database, String port, String username, String password){
		this.query = query;
		this.database = database;
		this.port = port;
		this.username = username;
		this.password = password;
		initialize();
	}
	
	@Override
	public void run(){
		
	}
	
	public void initialize() {
		try{
			Class.forName("com.mysql.jdbc.Driver");
			// Setup the connection with the DB
			con = DriverManager.getConnection("jdbc:mysql://localhost:3306/"+this.database, this.username, this.password);	
	
		}
		catch(Exception e){
			
		}
	}
	
	public ResultSet executeQuery(){
		return null;
	}
}
